package com.example.dziennikposilkow;

import android.content.Intent;
import android.content.pm.ActivityInfo;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class ProduktyWegetarianskie extends DziennikMainActivity {
	@Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);
        setContentView(R.layout.activity_produkty_wegetarianskie);
        
        final Button button_produkty_wegetarianskie = (Button) findViewById(R.id.buttonNapoje);
 		button_produkty_wegetarianskie.setOnClickListener(new View.OnClickListener() {
 			public void onClick(View v) {

 				String str = "Napoje"; //Data you want to send        
 				Intent intent = new Intent(ProduktyWegetarianskie.this, TabelaProdukty.class);
 				intent.putExtra("name",str); //here you will add the data into intent to pass bw activites
 				v.getContext().startActivity(intent);
 				
 			}
 			
 		});
 		
 		final Button button_kotlety = (Button) findViewById(R.id.buttonKotlety);
 		button_kotlety.setOnClickListener(new View.OnClickListener() {
 			public void onClick(View v) {

 				String str = "Kotlety"; //Data you want to send        
 				Intent intent = new Intent(ProduktyWegetarianskie.this, TabelaProdukty.class);
 				intent.putExtra("name",str); //here you will add the data into intent to pass bw activites
 				v.getContext().startActivity(intent);
 				
 			}
 			
 		});
 		
 		final Button button_pasztety_i_produkty_podobne = (Button) findViewById(R.id.buttonPasztetyIProduktyPodobne);
 		button_pasztety_i_produkty_podobne.setOnClickListener(new View.OnClickListener() {
 			public void onClick(View v) {

 				String str = "PasztetyIProduktyPodobne"; //Data you want to send        
 				Intent intent = new Intent(ProduktyWegetarianskie.this, TabelaProdukty.class);
 				intent.putExtra("name",str); //here you will add the data into intent to pass bw activites
 				v.getContext().startActivity(intent);
 				
 			}
 			
 		});
 		
 		final Button button_parowki_i_wedliny_sojowe = (Button) findViewById(R.id.buttonParowkiIWedlinySojowe);
 		button_parowki_i_wedliny_sojowe.setOnClickListener(new View.OnClickListener() {
 			public void onClick(View v) {

 				String str = "ParowkiIWedlinySojowe"; //Data you want to send        
 				Intent intent = new Intent(ProduktyWegetarianskie.this, TabelaProdukty.class);
 				intent.putExtra("name",str); //here you will add the data into intent to pass bw activites
 				v.getContext().startActivity(intent);
 				
 			}
 			
 		});
 		
 		final Button button_wegetarianskie_inne = (Button) findViewById(R.id.buttonWegetarianskieInne);
 		button_wegetarianskie_inne.setOnClickListener(new View.OnClickListener() {
 			public void onClick(View v) {

 				String str = "InnePW"; //Data you want to send        
 				Intent intent = new Intent(ProduktyWegetarianskie.this, TabelaProdukty.class);
 				intent.putExtra("name",str); //here you will add the data into intent to pass bw activites
 				v.getContext().startActivity(intent);
 				
 			}
 			
 		});
 		
 		
	}
}
